<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="keywords" content=""/>
    <title>Title</title>
    <link th:href="@{/css/font-awesome.css}" rel="stylesheet">
    <!-- bootstrap-css -->
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
    <!-- //bootstrap-css -->
    <!-- Custom CSS -->
    <link th:href="@{/css/style.css}" rel='stylesheet' type='text/css'/>
    <link th:href="@{/css/style-responsive.css}" rel="stylesheet"/>
</head>
<body>
<section id="container">
    <section id="main-content">
        <section class="wra">
            <div class="table-agile-info">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        我是管理员才能看见的页面
                    </div>
                    <div class="panel-heading">
                        所有管理员信息
                    </div>
                    <div>
                        <table class="table" ui-jq="footable" ui-options='{
        "paging": {
          "enabled": true
        },
        "filtering": {
          "enabled": true
        },
        "sorting": {
          "enabled": true
        }}'>
                            <thead>
                            <tr>
                                <th>account</th>
                                <th>昵称</th>
                                <th>性别</th>
                                <th data-breakpoints="xs">创建日期</th>
                                <th data-breakpoints="xs">最近登录日期</th>
                                <th data-breakpoints="xs sm md" data-title="DOB">描述</th>
                                <th data-breakpoints="xs sm md" data-title="DOB">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="admin:${adminList}">
                                <td>[[${admin.getAccount()}]]</td>
                                <td th:text="${admin.getName()}"></td>
                                <td th:text="${admin.getSex()==0?'女':'男'}"></td>
                                <td th:text="${#dates.format(admin.getBirth(),'yyyy/MM/dd HH:mm:ss')}"></td>
                                <td th:text="${#dates.format(admin.getBirth(),'yyyy/MM/dd HH:mm:ss')}"></td>
                                <td th:text="${admin.getDescription()}"></td>
                                <td>
                                    <a class="btn btn-primary btn-sm" th:href="@{'/admin/update/'+${admin.getAccount()}}">编辑</a>
                                    <a class="btn btn-danger btn-sm" th:href="@{'/admin/delete/'+${admin.getAccount()}}">删除</a>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </section>
    </section>
</section>

</body>
</html>